Use local machineid implementation
authorCyril Brulebois <cyril@debamax.com>
Thu, 7 Jan 2021 17:07:12 +0000 (17:07 +0000)
committerCyril Brulebois <cyril@debamax.com>
Mon, 3 May 2021 07:29:06 +0000 (08:29 +0100)
commitdd1cca54a98ded24a757ced0f728c373b46cd154
tree9d75804a784f9d4d3b8bf3a402eb88004e269f59
parent982735e9fb60e3470a68d6846cc47d341ecfb22a
Use local machineid implementation

Let's avoid a dependency on an extra package (denisbrodbeck/machineid),
since its ID() function is mostly about trying to read from two files.

Signed-off-by: Manuel Sabban <manuel@crowdsec.net>
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0001-use-a-local-machineid-implementation.patch
cmd/crowdsec-cli/machines.go
go.mod
go.sum
pkg/machineid/machineid.go [new file with mode: 0644]